package com.wujunshen.core.bean;

import com.wujunshen.core.util.DateUtil;

import java.io.Serializable;
import java.util.Date;

public class ID implements Serializable {

    private long timeStamp;
    private String dateTime;
    private long worker;
    private long sequence;

    public ID(){

    }

    public ID(long timeStamp, long worker, long sequence) {
        this.timeStamp = timeStamp;
        this.worker = worker;
        this.sequence = sequence;
    }

    public long getTimeStamp() {
        return timeStamp;
    }

    public void setTimeStamp(long timeStamp) {
        this.timeStamp = timeStamp;
    }

    public String getDateTime() {
        return DateUtil.convertDateToYYYYMMDDHHMMSS(new Date(this.timeStamp));
    }

    public long getWorker() {
        return worker;
    }

    public void setWorker(long worker) {
        this.worker = worker;
    }

    public long getSequence() {
        return sequence;
    }

    public void setSequence(long sequence) {
        this.sequence = sequence;
    }
}
